package cn.decorator;

/**
 * Created by jt on 2018/3/19.
 */
public class Pepper extends AbstractDecorator {
    public Pepper(ICooking cooking){
        super(cooking);
    }
    public void addPepper(){
        System.out.println("加胡椒");
    }
    public void vegetables(){
        super.vegetables();
        this.addPepper();
    }

}
